package org.wk.account.service;

import com.alibaba.fastjson.JSONObject;
import org.springframework.data.domain.Page;
import org.wk.account.domain.bao.SubAccountBaoSeq;
import org.wk.account.domain.ling.SubAccountLingExchangeCNY;
import org.wk.account.domain.ling.SubAccountLingSeq;
import org.wk.account.view.LingExchangeCNYVo;
import org.wk.core.common.view.PageVo;
import org.wk.core.common.view.ResponseVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author TangShenShen
 * @Description: 鲸灵服务service
 * @date 2018/5/189:51
 */
public interface SubAccountLingService {
    Page<SubAccountLingSeq> findSeqByCriteria(Integer page, Integer size, SubAccountLingSeq subAccountLingSeq);

    PageVo findExchangeCNYListPage(Map<String,Object> params);

    ResponseVo successExchangeCNY(String id);

    ResponseVo refuseExchangeCNY(LingExchangeCNYVo lingExchangeCNYVo);

    PageVo findExchangeCNYSeq(Map<String,Object> params);

    /**
     * @Description 鲸灵提现(手机端接口)
     * @param jsonObject
     * @author ZhaoPing'an
     * @Date 2018/6/29 10:15
     */
    ResponseVo lingExchangeCNY(JSONObject jsonObject);

    List<Object[]> exportSeqs(Map<String,Object> params, int length);

    void updateLingAccount(BigDecimal ling, String userId);

    Page<SubAccountLingSeq> findSeqByUserIds(int pageNum, int pageSize, List<String> userIds);
}
